Optimal. Leaf size=28 \[ \frac {x^2 \sqrt {a+b x}}{2 \sqrt {-a-b x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.087, Rules used = {23, 30}
\begin {gather*} \frac {x^2 \sqrt {a+b x}}{2 \sqrt {-a-b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 30
Rubi steps
\begin {align*} \int \frac {x \sqrt {a+b x}}{\sqrt {-a-b x}} \, dx &=\frac {\sqrt {a+b x} \int x \, dx}{\sqrt {-a-b x}}\\ &=\frac {x^2 \sqrt {a+b x}}{2 \sqrt {-a-b x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 28, normalized size = 1.00 \begin {gather*} \frac {x^2 \sqrt {a+b x}}{2 \sqrt {-a-b x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.07, size = 23, normalized size = 0.82
method | result | size |
gosper | \(\frac {x^{2} \sqrt {b x +a}}{2 \sqrt {-b x -a}}\) | \(23\) |
default | \(-\frac {\sqrt {-b x -a}\, x^{2}}{2 \sqrt {b x +a}}\) | \(23\) |
risch | \(-\frac {i \sqrt {\frac {-b x -a}{b x +a}}\, \sqrt {b x +a}\, x^{2}}{2 \sqrt {-b x -a}}\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 46 vs.
\(2 (22) = 44\).
time = 1.54, size = 46, normalized size = 1.64 \begin {gather*} - \frac {a \left (a + b x\right )^{\frac {3}{2}}}{b^{2} \sqrt {- a - b x}} + \frac {\left (a + b x\right )^{\frac {5}{2}}}{2 b^{2} \sqrt {- a - b x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 2.49, size = 21, normalized size = 0.75 \begin {gather*} -\frac {i \, {\left ({\left (b x + a\right )}^{2} - 2 \, {\left (b x + a\right )} a\right )}}{2 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {x\,\sqrt {a+b\,x}}{\sqrt {-a-b\,x}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________